//
//  UIViewController+HUD.m
//  BLUIKit
//
//  Created by macos on 2023/2/20.
//

#import "UIViewController+HUD.h"
#import "BLProgressHUD+private.h"

@implementation UIViewController (HUD)

- (void)showErrorMsg:(NSString *)error{
    [BLProgressHUD showMsg:error toView:self.view autoHide:YES];
}

- (void)showSuccess:(NSString *)success{
    [BLProgressHUD showMsg:success toView:self.view autoHide:YES];
}

- (BLProgressHUD* _Nullable)showHud:(NSString* _Nullable)msg{
    return [BLProgressHUD showHud:msg inView:self.view];
}

@end
